﻿@model VietPremier.Models.GetHotelModel

@{
    Layout = null;
}

<div class="box-about">
    <h5>Khách sạn liên quan</h5>
            @if (Model != null)
            {
                
                <div class="row-fluid">
                    @{
                int count = Model.listHotel.Count;
                        <div class="span6 wheretosay"> 
                            @for (int i = 0; i < (count % 2 == 0 ? count / 2 : count / 2 + 1); i++)
                            {
                                var imageFile = string.Concat("~/Content/upload/destination/", Model.listHotel[2 * i].Image);                
                                <div class="it">
                                    <div class="img">
                                        <div class="img-inner">
                                            <a href="#">
                                                <img src="@Url.Content(imageFile)" /></a>
                                        </div>
                                    </div>
                                    <h4><a class="title" href="#">@Model.listHotel[2 * i].Name</a></h4>
                                   
                                    <small class="tripcode">@Model.listHotel[2 * i].Rate</small>
                                    <small class="tripcode">@Model.listHotel[2 * i].Address</small>
                                    <small class="tripcode">@Model.listHotel[2 * i].Phone</small>
                                </div>
                            }
                        </div>
                        <!--/ .span6 wheretosay-->
                        <div class="span6 wheretosay">
                            @for (int i = 0; i < (count % 2 == 0 ? count / 2 : count / 2 + 1); i++)
                            {
                                if (2 * i + 1 < count)
                                {
                                    var imageFile = string.Concat("~/Content/upload/destination/", Model.listHotel[2 * i + 1].Image);
                                <div class="it">
                                    <div class="img">
                                        <div class="img-inner">
                                            <a href="#">
                                                <img src="@Url.Content(imageFile)" /></a>
                                        </div>
                                    </div>
                                    <h4><a class="title" href="#">@Model.listHotel[2 * i + 1].Name</a></h4>
                                  
                                    <small class="tripcode">@Model.listHotel[2 * i + 1].Rate</small>
                                    <small class="tripcode">@Model.listHotel[2 * i + 1].Address</small>
                                    <small class="tripcode">@Model.listHotel[2 * i + 1].Phone</small>
                                </div>
                                }
                            }
                        </div><!--/ .span6 wheretosay-->
                    }
                       <div id="slide-pager">
                                            <a  href="#" id="wherewego_next"><img src="@Url.Content("~/Content/cssFrontEnd/images/btn-down.png")" /></a>
                                        </div><!--/ #slide-pager-->
                </div><!--/ .box-about-->
            }else{
                <h5>This page is updated content</h5>
            }
        </div>
